c={'GA','ES','surrogate','simann','Pattern','MCS'};
load sorted_results
for k=1:size(c,2)
    for j=1:3
        switch j
            case 1
                load Accumulated_Results;
                Accumulated_Results=Accumulated_Results;
            case 2
                load Accumulated_Results1;
                Accumulated_Results=Accumulated_Results;
            case 3
                load Accumulated_Results2;
                Accumulated_Results=Accumulated_Results;
        end
        for i=2:size(Accumulated_Results,1)
            if(strcmp(Accumulated_Results{i,1},c(k)))
                sorted_results{end+1,1} = Accumulated_Results{i,1};
                sorted_results{end,2} = Accumulated_Results{i,2};
                sorted_results{end,3} = Accumulated_Results{i,3};
                sorted_results{end,4} = Accumulated_Results{i,4};
                sorted_results{end,5} = Accumulated_Results{i,5};
                sorted_results{end,6} = Accumulated_Results{i,6};
                sorted_results{end,7} = Accumulated_Results{i,7};
                sorted_results{end,8}= Accumulated_Results{i,8};
                sorted_results{end,9}= Accumulated_Results{i,9};
                sorted_results{end,10}= Accumulated_Results{i,10};
                sorted_results{end,11} = Accumulated_Results{i,11};
                sorted_results{end,12}= Accumulated_Results{i,12};
                sorted_results{end,13}= Accumulated_Results{i,13};
                sorted_results{end,14}= Accumulated_Results{i,14};
                save('sorted_results','sorted_results')
            end
        end
    end
end